package com.tedu.service.Impl;

import com.tedu.dao.UserDao;
import com.tedu.pojo.User;
import com.tedu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;

public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    @Override
    public int insert(User user) {
        return userDao.insert(user);
    }

    @Override
    public User SelectByPhone(String id) {
        return userDao.SelectByphone(1);
    }
}
